'use strict'

var express = require('express');
var routes = require('./routes/market');

//mysql 
const mysql = require('mysql');
var connection = mysql.createConnection({
    host:'localhost',
    user:'root',
    password:'',
    database:'test'
});

//Creat Hapi server object
var app = express();

// app.get('/',function (req,res) {
//     res.send('Get Request');
// });

app.use('/',routes);

app.listen(3000);

module.exports = app;